# Copyright 2006 The Android Open Source Project

ifdef WIFI_DRIVER_MODULE_PATH
LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_PATH=\"$(WIFI_DRIVER_MODULE_PATH)\"
endif
ifdef WIFI_DRIVER_MODULE_ARG
LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_ARG=\"$(WIFI_DRIVER_MODULE_ARG)\"
endif
ifdef WIFI_DRIVER_MODULE_NAME
LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_NAME=\"$(WIFI_DRIVER_MODULE_NAME)\"
endif
ifdef WIFI_FIRMWARE_LOADER
LOCAL_CFLAGS += -DWIFI_FIRMWARE_LOADER=\"$(WIFI_FIRMWARE_LOADER)\"
endif
ifdef WIFI_DRIVER_FW_PATH_STA
LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_STA=\"$(WIFI_DRIVER_FW_PATH_STA)\"
endif
ifdef WIFI_DRIVER_FW_PATH_AP
LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_AP=\"$(WIFI_DRIVER_FW_PATH_AP)\"
endif
ifdef WIFI_DRIVER_FW_PATH_P2P
LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_P2P=\"$(WIFI_DRIVER_FW_PATH_P2P)\"
endif
ifdef WIFI_DRIVER_FW_PATH_PARAM
LOCAL_CFLAGS += -DWIFI_DRIVER_FW_PATH_PARAM=\"$(WIFI_DRIVER_FW_PATH_PARAM)\"
endif

# realtek usb wifi module-new
ifeq ($(SW_BOARD_USR_WIFI), rtl8188eu)
LOCAL_CFLAGS += -DRTL_8188EU_WIFI_USED
LOCAL_CFLAGS += -DRTL_WIFI_VENDOR
endif

# realtek usb wifi module-new
ifeq ($(SW_BOARD_USR_WIFI), rtl8189es)
LOCAL_CFLAGS += -DRTL_8189ES_WIFI_USED
LOCAL_CFLAGS += -DRTL_WIFI_VENDOR
endif

# realtek usb 8189fs wifi module-new
ifeq ($(SW_BOARD_USR_WIFI), rtl8189fs)
LOCAL_CFLAGS += -DRTL_8180FS_WIFI_USED
LOCAL_CFLAGS += -DRTL_WIFI_VENDOR
endif

# realtek sdio wifi+bt module
ifeq ($(SW_BOARD_USR_WIFI), rtl8723bs)
LOCAL_CFLAGS += -DRTL_8723BS_WIFI_USED
LOCAL_CFLAGS += -DRTL_WIFI_VENDOR
endif
LOCAL_SRC_FILES += wifi/wifi.c

LOCAL_SHARED_LIBRARIES += libnetutils
